# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test09
# Description:  例23.9
# Author:       ASUS
# Date:         2019/4/4
#-------------------------------------------------------------------------------


from numpy import *
a = array([1,2,3,4,5,6])
#将一维数组转换为列表
print(a)
print(type(a))
b1 = a.tolist()
print(b1)
print(type(b1))
print("-------------")
#二维数组转换成列表
b2 = a.reshape(2,3)
print(b2)
print(type(b2))
b2 = b2.tolist()
print(b2)
print(type(b2))



